package pers.lmd.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pers.lmd.domain.R;
import pers.lmd.common.constant.ResultEnum;
import pers.lmd.domain.vo.AssistVO;
import pers.lmd.service.IAssistService;
import pers.lmd.common.utils.ResultUtil;

import java.util.List;

/**
 * @Author lmd
 * @Date 2023/5/2 22:17
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/system")
@Tag(name = "疫情援助控制器")
public class AssistController {
    private final IAssistService IAssistService;
    @Operation(summary = "显示互助名单")
    @GetMapping("/assist")
    public R<List<AssistVO>> getAssist(){
        return ResultUtil.success(ResultEnum.SUCCESS, IAssistService.getAssist()) ;
    }
}
